def quicksort(args):
    if(args==[]): return []
    return quicksort([i for i in args[1:] if i<=args[0]])+[args[0]]+quicksort([i for i in args[1:] if i>args[0]])
print quicksort([12,14,25,23,2,17,13,25,34,777])
